home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 1
/
Cream of the Crop 1.iso
/
PRINTER
/
FED201.ARJ
/
FONTEDIT.DOC
< prev
next >
Wrap
Text File
|
1992-06-12
|
87KB
|
2,109 lines
FONTEDIT, (C) by Alexander Walter Page 1
FONTEDIT
version 2.0
Copyright 1992
Alexander Walter
FONTEDIT, (C) by Alexander Walter Page 2
TABLE OF CONTENTS
1. Acknowledgments......................................................4
2. Miscellany...........................................................4
3. Requirements and Limitations.........................................4
4. Introduction and Features............................................5
5. Guide to Operation...................................................6
5.1. Basic Screen Layout................................................7
5.2. Main Menu..........................................................8
5.2.1. Pixel Edit.......................................................8
5.2.1.1. Image Transforms...............................................9
5.2.1.1.1. Invert......................................................10
5.2.1.1.2. Hollow......................................................10
5.2.1.1.3. Thinner.....................................................10
5.2.1.1.4. Mirror Image................................................11
5.2.1.1.5. Upside-Down.................................................11
5.2.1.1.6. Slant.......................................................11
5.2.1.1.7. Tilt........................................................11
5.2.1.1.8. Drop Shadow.................................................11
5.2.1.1.9. Resize......................................................12
5.2.1.1.10. Counterclockwise...........................................12
5.2.1.1.11. Bolder.....................................................12
5.2.1.2. Area Operators................................................12
5.2.1.2.1. Polygon Fill & Clear........................................13
5.2.1.2.1.1. Bezier Curve..............................................15
5.2.1.2.2. Rectangle Fill & Clear......................................15
5.2.1.2.3. Ellipse & Wedge Fill / Clear................................17
5.2.1.2.4. Parallelogram Fill & Clear..................................18
5.2.1.2.5. Pixel Edit..................................................19
5.2.1.3. Clear Character...............................................19
5.2.1.4. Row/Col Ins/Del...............................................19
5.2.1.5. Cut & Paste...................................................20
5.2.1.6. Adjust Kerning................................................21
5.2.1.7. Quit & Save...................................................22
5.2.1.8. Toggle Pixel..................................................22
5.2.1.9. Quit, no Save.................................................22
5.2.2. Zoom / Unzoom...................................................22
5.2.3. Font Operators..................................................22
5.2.3.1. New Cell Width................................................23
5.2.3.2. New Cell Height...............................................23
5.2.3.3. Create New Font...............................................24
5.2.3.4. Make Landscape / Make Portrait................................24
5.2.3.5. Make Fixed Width / Make Propor................................24
5.2.3.6. New Pitch (HMI)...............................................24
5.2.3.7. New VMI.......................................................25
5.2.3.8. New Point Size................................................25
5.2.3.9. Move Baseline.................................................25
5.2.3.10. Main Menu....................................................25
5.2.3.11. New Symbol Set...............................................25
5.2.3.12. New Typeface.................................................26
5.2.3.13. New Font Comment.............................................26
5.2.3.14. Counterclockwise.............................................26
FONTEDIT, (C) by Alexander Walter Page 3
5.2.3.15. Invert.......................................................26
5.2.3.16. Hollow.......................................................26
5.2.3.17. Thinner......................................................27
5.2.3.18. Mirror Image.................................................27
5.2.3.19. Upside-Down..................................................27
5.2.3.20. Slant........................................................27
5.2.3.21. Tilt.........................................................27
5.2.3.22. Drop Shadow..................................................28
5.2.3.23. Bolder.......................................................28
5.2.3.24. Start ASCII..................................................28
5.2.4. Replicate.......................................................28
5.2.5. New Font........................................................29
5.2.6. Create New Char.................................................29
5.2.7. Delete Character................................................29
5.2.8. Printer Support.................................................30
5.2.8.1. Download Font.................................................30
5.2.8.2. Print File....................................................30
5.2.8.3. Echo Text.....................................................30
5.2.8.4. Page Eject....................................................31
5.2.8.5. Select Font ID................................................31
5.2.8.6. Built-in Fonts................................................31
5.2.9. Import TIFF.....................................................31
5.2.10. Quit...........................................................33
5.2.10.1. VGA Text Colors..............................................33
5.2.10.2. Exp. Factors.................................................33
5.2.10.3. <Print Shop Icon.............................................34
5.2.11. Import PCX.....................................................34
5.2.12. Import Soft Font...............................................34
5.2.13. Pick ASCII.....................................................34
6. Tips................................................................36
6.1. Scanning and Importing Graphics...................................36
6.2. Very Large Point Sizes............................................36
7. Sample Session......................................................38
7.1. Gantt Milestone Character.........................................38
7.2. Registered Trademark Symbol.......................................39
FONTEDIT, (C) by Alexander Walter Page 4
1. Acknowledgments
FONTEDIT is copyright 1992 by Alexander Walter. All rights reserved. The
purchaser is granted the right to make one copy for backup or archival
purposes.
The run-time files BRUN45.EXE and MSHERC.COM are copyrighted by Microsoft and
are distributed with this package in accordance with the QuickBasic 4.5
licensing agreement.
Portions (c) Copyright Genus Microprogramming, Inc. 1988-1991. This bit of
legalese is required by Genus since FONTEDIT uses their PCX toolkit to support
importing characters from PCX images.
2. Miscellany
This is version 2.0 of FONTEDIT. FONTEDIT is available by sending a $30 check
or money order to:
Alexander Walter
182 ILER Dr.
Middletown, NJ. 07748
phone support is available at (908) 949-0507 or (908) 671-5080.
If you encounter any problems or bugs with FONTEDIT, please report them to the
author along with a description of the steps that led up to it. If you have any
suggestions for new features, pass them along. A version of FONTEDIT for the HP
DeskJet printer is also available.
3. Requirements and Limitations
FONTEDIT requires a graphics display, CGA or higher. A Hercules graphics
display can be used provided you run the MSHERC.COM TSR before running
FONTEDIT.
FONTEDIT requires DOS 2.1 or above, and approximately 256K of available RAM,
i.e., memory not used by DOS or TSRs. FONTEDIT can be run from one floppy disk
drive; however, since HP font files can be large, hard disk usage is
recommended.
The font file being edited with FONTEDIT must be of the HP LaserJet bitmapped
format. This includes Series II and above. Postscript font files are not
supported. Outline fonts available in the LaserJet III are not yet supported;
however, the LaserJet III will still accept bitmapped fonts. You cannot change
the built-in Courier and TTY fonts of the laser printer.
FONTEDIT, (C) by Alexander Walter Page 5
If you use any compression programs to reduce the size of font files stored on
disk, they must be uncompressed before editing then with FONTEDIT.
If you use the DOS access feature available by pressing ALT-D, be sure to
include in your DOS PATH the directory containing FONTEDIT.
4. Introduction and Features
FONTEDIT is a tool to view and edit laser printer soft font files for the
Hewlett-Packard laser printer. Such a tool can be used to touch-up existing
characters in a file, define special characters in a font file, or create an
entirely new fontface. For example, using FONTEDIT you could add Greek
characters to a font file you already have; you could define special characters
such as the Gantt chart symbols used by Timeline and other project management
software; or you could produce a stylized version of your company's name or
logo.
FONTEDIT has a rich set of features for editing fonts:
- Can view and edit both portrait and landscape fonts, and convert one to
the other.
- Handles both fixed-width and proportional fonts, and can convert one to
the other.
- Automatically detects a mouse if present and uses it.
- Requires only CGA graphics. Will detect and use EGA or VGA if available.
- Maximum point size depends on display mode. Maximum 110 point (VGA); 80
point (EGA & Hercules); 44 point (CGA); or 88 point (AT&T video mode)
- Allows both pixel-level editing of individual characters and fill & clear
area operations (rectangle, parallelogram, circle, ellipse, wedge,
arbitrary polygon, Bezier curves).
- Can change font parameters, such as maximum height & width, baseline,
symbol set, typeface value, and embedded font comment.
- Can resize the font up or down to any arbitrary point size, up to the
maximum allowable for the display adaptor, and smooths characters while
doing so.
- Can resize individual characters while smoothing and maintaining their
original shape.
- Can perform special effects (drop shadow, mirror image, rotate, upside
down, invert, etc.)
- Has a clipboard to allow cutting and pasteing portions of a character
either within the same character, or to another character.
- Can insert or delete rows and columns of individual characters.
- Can import TIFF or PCX bilevel graphics as characters.
- Can import characters from another font.
- Can import PrintShop icon graphics.
- Can change intercharacter spacing (kerning) of proportional fonts
- Can add and delete characters from a font.
- Zoom mode available for close-ups.
FONTEDIT, (C) by Alexander Walter Page 6
- Includes printer support within the FONTEDIT environment to see the effect
of editing changes.
- Handles font files which consist of several fonts grouped together.
- Menu-driven user interface, available at all times.
- Built-in DOS access.
- On some VGA monitors, the text colors can be customized.
5. Guide to Operation
To begin the shareware version 2.0 of FONTEDIT, simply type "fontedit" at the
DOS prompt. You may follow it with the name of the font file to edit. If you
don't, FONTEDIT will ask you to supply a font filename.
FONTEDIT requires only a CGA adaptor, but will automatically detect and use the
higher resolution of a VGA, EGA, or AT&T adaptor if available. This can be
overridden by including a switch either on the command line or when specifying
the font filename to edit. For instance, if an EGA monitor is being used but
you want to take advantage of the faster graphics and lower memory requirements
of CGA mode, you can force CGA mode when beginning FONTEDIT by typing:
fed20 filename /cga
To force EGA mode while using a VGA adaptor, use "/ega".
To use a Hercules graphics board, run the MSHERC.COM TSR program before
starting FONTEDIT. MSHERC.COM is (C) by Microsoft, and is distributed here in
accordance with the QuickBasic 4.5 licensing agreement.
While you are prompted for a filename, FONTEDIT displays a message whether a
mouse driver is installed or not. If you have a mouse but have forgotten to
install the driver, you can exit FONTEDIT at this point by pressing ESC.
Either on the command line or when FONTEDIT asks for a filename, you may
supply a filename containing wildcards (*,?) and, optionally, a drive
designator. FONTEDIT responds with a list of matching filenames from which you
can point and shoot with a mouse. If a mouse is not installed, you can choose a
filename by moving the reverse-video highlight with the arrow keys and pressing
Enter. If a drive designator is not specified, the default drive is used. If
you make a mistake in the wildcards, you can press Space Bar and reenter the
wildcards or a filename.
When a font file has been chosen, FONTEDIT will create a backup copy of the
font file, giving it the extension ".BAK".
If there is insufficient room left on the disk drive, FONTEDIT will give a
caution and stop. The free space required on the disk with the font file must
be at least as much as the original size of the font file. This is calculated
after the backup file has been created.
FONTEDIT, (C) by Alexander Walter Page 7
If the overlay file FED20B.EXE is not in the current directory or in one of the
directories in your DOS PATH, you will be prompted to enter the pathname to it.
After loading the font file, if it contains multiple font definitions you will
be asked which font you want to view and edit; after you answer you will see
the main menu (described below). If the font file contains only one font
definition, you will immediately be at the main menu. If ASCII 65 (capital "A")
is defined for the font file you are editing, it will be displayed. At any time
after this point, you may temporarily escape to DOS by pressing ALT-D. Be sure
that your path includes the FONTEDIT subdirectory when using the DOS access
feature.
Upon completion of editing, saving of your work, and exiting FONTEDIT, you can
download to your printer the newly edited font file. Normally, this is done by
using whatever font downloading utilities you usually use. Optionally, while
editing your font file you can download it to the laser printer from within
FONTEDIT, and print either a text file from disk or echo keyboard input to the
printer using the font. This is described further later.
5.1. Basic Screen Layout
The basic screen layout is a status line at the top; on the top right are the
menu choices available via the Function Keys, RETURN, or ESC; on the middle
right is information about the font being edited; and on the bottom right is
information about the displayed character. The rest of the screen is used to
display a magnified version of the characters. At times the bottom line is used
for messages.
The displayed character and the border around it is referred here as the
character box. The character box is surrounded by a larger box which is
referred here as the cell box. The cell box denotes the largest character size
which any character in this font can be. The information area on the right of
the screen shows the size of the cell box and character box. The size of the
cell box can be changed under the Font Operators menu.
If zoom mode is active (described in a subsequent section), the cell box is
suppressed and the character box is displayed so that it takes up as much of
the screen as possible.
For portrait fonts, the baseline is shown on screen. The baseline is the level
of the bottom of characters without descenders, such as "x", "c", or "r".
Characters such as "p", "q", and "y" normally have descenders which extend
below the baseline.
The magnification factor is automatically chosen at start-up to provide a size
which fills up the screen as much as possible while maintaining a "pleasing"
ratio of width to height. The character box is displayed with grid lines
superimposed as an editing guide for the user. If the magnification is such
that the character box would become congested while the grid lines are
displayed, the grid lines are suppressed.
FONTEDIT, (C) by Alexander Walter Page 8
5.2. Main Menu
The status message at the top of the screen says "Press a character to display
it." The main menu changes with pressing either the SHIFT or CTRL keys. This
reflects how the F-key definitions change when SHIFT or CTRL is pressed. The
available menu options are shown below.
NO SHIFT or CTRL SHIFT only CTRL only
F2 = Pixel Edit F2 = VGA Text Colors F2 =
F3 = Zoom (1) F3 = Exp. Factors F3 =
F4 = Font Operators F4 = F4 =
F5 = Replicate F5 = F5 =
F6 = New Font (2) F6 = F6 =
F7 = Create New Char. F7 = F7 =
F8 = Delete Character F8 = F8 =
F9 = Printer Commands F9 = <Print Shop Icon F9 =
F10= Import TIFF F10= Import PCX F10= Import Soft Font
RET= RET= RET= Pick ASCII
ESC= Quit ESC= Quit ESC= Quit
notes:
1. If already in Zoom mode, this will say "Unzoom".
2. This choice shown only if the font file defines more than one font.
At this point you can either begin to operate on the character displayed, or
press a letter or number key to display that character. If the ASCII value
corresponding to the key you pressed is not defined in the font, there will be
no response. To display any ASCII characters defined in your font file,
including those such as ASCII 127 which don't have an associated key on the
keyboard, you can also press and hold the ALT key, type the 3-digit ASCII value
on the numeric keypad, then release the ALT key. Again, if that ASCII value is
not defined in the font, there will be no response.
Since some keyboards don't have a numeric keypad, another way to display a
character which doesn't have a keyboard equivalent is to use the Pick ASCII
menu choice (CTRL-Enter).
Pressing ALT-Z (for zoom) at the Main Menu or the Pixel Edit menu can also be
used to toggle zoom mode on and off.
5.2.1. Pixel Edit
Pixel Edit is a choice from the main menu, and operates on the character
FONTEDIT, (C) by Alexander Walter Page 9
displayed. Upon entering the edit mode, the status message at the top of the
screen says either:
"Pixel Editing. Left Button: Set Pixel Right Button: Clear Pixel"
if a mouse is installed, or:
"Pixel Editing. Use arrow keys to move crosshairs";
if no mouse is installed. The following menu choices are displayed:
F2 = Image Transforms
F3 = Area Operators
F4 = Clear Character
F5 = Row/Col Ins/Del
F6 = Cut & Paste
F7 = Adjust Kerning (1)
F10= Quit & Save
RET= Toggle pixel (2)
ESC= Quit, no save
notes:
1. This menu choice shown only for proportional fonts.
2. This menu choice shown only if no mouse is installed.
At this point, the mouse arrow cursor will be visible if a mouse is installed.
If no mouse is installed, you will see a crosshair. Both the crosshair and
mouse can be moved one pixel at a time with the arrow keys, or in larger
increments by using the PgUp, PgDn, Tab, and Shift-Tab keys. You can begin
editing individual pixels by either moving the mouse arrow and clicking, or by
moving the crosshair and pressing RETURN to toggle the pixel underneath on or
off.
At the Pixel Edit menu, zoom mode can be toggled on and off by pressing ALT-Z.
If zoom mode is not in effect, the character box can be moved around within the
cell box by pressing Ctrl-Up, Ctrl-Down, Ctrl-Left, or Ctrl-Right. If your
keyboard has two sets of arrow keys, the arrow keys on the numeric keypad must
be used. As you move the character, the left offset and top offset are updated
in the character information display.
5.2.1.1. Image Transforms
Image Transforms is a choice from the pixel edit menu, and performs a set of
special effects on the character displayed. Upon entering Image Transforms, the
status message at the top of the screen says:
FONTEDIT, (C) by Alexander Walter Page 10
"Image Transforms. Press SHIFT for more."
The following menu choices are displayed:
NO SHIFT or CTRL SHIFT only CTRL only
F2 = Invert F2 = Resize (3) F2 =
F3 = Hollow F3 = Counterclockwise (3) F3 =
F4 = Thinner F4 = Bolder F4 =
F5 = Mirror Image F5 = F5 =
F6 = Upside-Down F6 = F6 =
F7 = Slant (1) F7 = F7 =
F8 = Tilt (1) F8 = F8 =
F9 = Drop Shadow (1) F9 = F9 =
F10= F10= F10=
RET= Toggle Pixel (2) RET= RET=
ESC= Pixel Edit Menu ESC= Pixel Edit Menu ESC= Pixel Edit Menu
notes:
1. Slant, Tilt, and Drop Shadow choices shown only when not in zoom mode.
2. This menu choice shown only if no mouse is installed.
3. Resize & Counterclockwise choices shown only when not in zoom mode.
5.2.1.1.1. Invert.
This is chosen from the Image Transforms menu. It will change all "on" pixels
to "off" pixels, and vice versa. It operates on the character presently
displayed, including any editing changes already made up to that point.
5.2.1.1.2. Hollow.
This is chosen from the Image Transforms menu. It will hollow out a character,
leaving behind a skeleton about one pixel wide. The hollow function is
performed by deleting all pixels which are completely enclosed by its 8
neighbors.
5.2.1.1.3. Thinner.
This is chosen from the Image Transforms menu. It will make the character
thinner by about one pixel on all sides. This function can be invoked
repeatedly to make the character even thinner. However, the thinning algorithm
is smart enough not to thin it beyond the point at which the character's basic
shape changes. That is, you can thin a character to a 1-pixel wide skeletonal
stick figure, but it will still be recognizable as that character.
FONTEDIT, (C) by Alexander Walter Page 11
5.2.1.1.4. Mirror Image.
This is chosen from the Image Transforms menu. It will flip the character
around the vertical axis, as if you were looking at it in a mirror.
5.2.1.1.5. Upside-Down
This is chosen from the Image Transforms menu. It will turn the character
upside-down, flipping it around the horizontal axis.
5.2.1.1.6. Slant.
This is chosen from the Image Transforms menu. It will slant the top of the
character left or right. Upon choosing this option, you will see a blinking
parallelogram which indicates the amount of slant the new character will have.
If this option is chosen without a mouse present, the height of the
parallelogram can be disregarded. This option can be chosen only if not in zoom
mode.
Slant and tilt are especially useful for straightening out an imported scanned
image which may be slightly crooked, or for creating pseudo-italic characters,
etc.
5.2.1.1.7. Tilt.
This is chosen from the Image Transforms menu. It will tilt the right side of
the character up or down. Upon choosing this option, you will see a blinking
parallelogram which indicates the amount of tilt the new character will have.
If this option is chosen without a mouse present, the width of the
parallelogram can be disregarded. This option can be chosen only if not in zoom
mode.
5.2.1.1.8. Drop Shadow.
This is chosen from the Image Transforms menu. It will hollow out the character
and place a shadow of the original character underneath it. This can be used to
simulate a 3-dimensional character. Upon choosing this option you will see a
blinking character box, which represents the placement of the shadowed image of
the character. When the placement is OK, click the mouse (or press F10 if no
mouse). This option can be chosen only if not in zoom mode.
FONTEDIT, (C) by Alexander Walter Page 12
5.2.1.1.9. Resize.
This is chosen from the Image Transforms menu by pressing SHIFT-F2. It will
allow the character to be stretched or compressed both horizontally and
vertically independently. The resized character will be smoothed to eliminate
"jaggies". This option can be chosen only if not in zoom mode.
When this option is chosen, the character box will blink. You can use the mouse
or arrow keys to change the size of the character box, and it will
"rubber-band" while you do so. The upper left corner remains fixed, and only
the lower right corner moves. F5 can be used to refresh the display. When the
size is OK, click the mouse or press F10 to accept the new size. The character
will be scaled to the new size.
If you cannot make the character big enough by moving only the lower right
corner, cancel the resizing and move the entire character with Ctrl-Up or
Ctrl-Left, and then resize again.
After the character is resized, you may want ensure that the left offset, top
offset, and kerning (if the font is proportional) are acceptable.
5.2.1.1.10. Counterclockwise.
This is chosen from the Image Transforms menu by pressing SHIFT-F3. It will
turn the character 90 degrees counterclockwise. It can be repeatedly pressed,
and pressing it 3 times is equivalent to turning the character 90 degrees
clockwise. Using this option, you can simulate the ability to print both
portrait and landscape on the same page at the same time on the LaserJet II.
This option can be chosen only if not in zoom mode.
5.2.1.1.11. Bolder.
This is chosen from the Image Transforms menu by pressing SHIFT-F4. It will
make a character wider by about one pixel on all sides. This function can be
invoked repeatedly, but it is smart enough to keep from completely filling up
interior areas like the midle of the letter "O".
5.2.1.2. Area Operators
Area Operators is a choice from the Pixel Edit menu. It allows you to fill
(turn "on") or clear (turn "off") a large group of pixels at once. Several
types of shapes are available. Upon entering the edit mode, the status message
at the top of the screen says:
FONTEDIT, (C) by Alexander Walter Page 13
"Area fill & Clear. Choose a shape with F keys."
The following menu choices are displayed:
F3 = Polygon
F4 = Rectangle
F5 = Ellipse & Wedge
F6 = Parallelogram
ESC= Pixel Edit
At this point you can either choose one of the shapes shown, or escape back to
pixel editing. Any area operations you have completed but now wish to undo must
be undone by escaping to Pixel Editing, and then escaping from Pixel Editing
back to the Main Menu. Caution - this will also undo any other unrelated
editing changes for that character.
All area operations act on a character using the aspect ratios presently in
use. For instance, if you choose a circular fill area operation (a special case
of the ellipse fill), but the character is displayed such that it is wide and
flat, the filled area will appear circular on screen. However, once is is
printed, the filled area would appear more like a tall, upright ellipse rather
than a circle. The default aspect ratio has been chosen to eliminate this
potential problem.
5.2.1.2.1. Polygon Fill & Clear
Polygon fill and clear allows filling and clearing of areas of arbitrary,
closed shape. The shape should be a polygon that does not loop onto itself such
as a figure eight. For such a polygon, only one of the interior loops would be
filled or cleared.
Upon entering Polygon Fill & Clear, the status message at the top of the screen
says either:
"Polygon fill. Left Button: Mark vertex Right Button: Close polygon"
if a mouse is installed, or simply:
"Polygon fill."
if no mouse is installed. The menu keys display the choices:
F10= Close Polygon (1)
RET= Mark vertex (1)
ESC= Cancel
notes:
1. This menu choice shown only if no mouse is installed.
FONTEDIT, (C) by Alexander Walter Page 14
To begin marking the polygon to fill or clear, go to a vertex of it and either
press the left mouse button (if using a mouse), or press RETURN (if not using a
mouse). Then go to each succeeding vertex in order and either press the left
mouse button or press RETURN. As you select where to place the vertex, the line
segment will blink to show you how it would look if the vertex were placed
there. After you place the vertex, the line segment will become solid and a
partially drawn polygon will be superimposed on the character displayed. At any
time you can cancel the polygon fill & clear operation by pressing ESC.
After the first vertex is marked, the menu choice "F2 = Bezier Curve" will
appear. This choice allows a Bezier curve segment to be defined. This choice is
described more fully below.
After you have marked each vertex, it is not necessary to go back to the first
vertex; simply press the right mouse button (if using a mouse), or press F10
(if not using a mouse). The polygon will automatically be completed between the
last vertex marked and the first vertex.
At this point, the character is temporarily suppressed, leaving displayed the
outline of the character box and the polygon just marked. You now have the
option of:
---------- -----------
Filling, or \ / polygon interior
Clearing, or >--- either the --< or
XOR'ing / \ polygon exterior
---------- -----------
If a mouse is installed, the status line will read:
"Left Button: Fill Right Button: Clear Both: XOR"
The menu choices will show:
F3 = Fill (1)
F4 = Clear (1)
F5 = XOR (1)
F6 = Tiling (2)
ESC= Cancel
notes:
1. This menu choice shown only if no mouse is installed.
2. This menu choice shown only for very large fonts on a VGA, AT&T, or CGA
display.
Move the mouse or crosshairs to either the interior or exterior of the polygon,
FONTEDIT, (C) by Alexander Walter Page 15
and either click the mouse or press the function keys F3, F4, or F5. After a
few seconds, the character will be redrawn with the affected pixels either
filled, cleared, or exclusive-ORed (XOR'ed). You will be returned back to the
Area Operations menu.
5.2.1.2.1.1. Bezier Curve
This choice is enabled during Polygon Area Operations after the first point of
a polygon has been chosen. Upon choosing the Bezier Curve option, you will be
given the choices:
F2 = Set Endpoint
F3 = Set C1
F4 = Set C2
F10= Curve OK
ESC= Cancel
A Bezier curve is defined by four points: the start, the end, and two control
points (C1 & C2). When the Bezier Curve option is chosen, the most recently
defined polygon vertex is taken as the starting point. The other three points
are chosen using the F2, F3, and F4 keys. As each point is chosen, the menu
will change to read "Modify ...". For instance, after the endpoint is chosen,
the menu will show "F2 = Modify Endpoint".
Once the three points are chosen, a Bezier curve will be drawn. The location of
any of the three points can then be modified. While a point is being modified,
the Bezier curve will "rubber-band" to show the effect of moving that point.
The old location of the point will blink as a reminder of its location.
Once the three points have been satisfactorily set, press F10 to accept the
Bezier curve. Polygon definition will continue from the ending of the Bezier
curve.
5.2.1.2.2. Rectangle Fill & Clear
Rectangle fill & clear allows filling of rectangular (including square)
regions, and operates in a similar manner as polygon fill & clear, except that
only the two diagonally opposite corners of the rectangle need to be marked.
They can be either upper left - lower right, or lower left - upper right.
Upon entering Rectangle Fill & Clear, the status message at the top of the
screen says either:
"Rectangle fill. Left Button: 1st corner Right Button: Opposite Corner"
if a mouse is installed, or simply:
FONTEDIT, (C) by Alexander Walter Page 16
"Rectangle fill."
if no mouse is installed. The menu keys display the choices:
RET= Mark Corner (1)
ESC= Cancel
notes:
1. This menu choice shown only if no mouse is installed.
To begin marking the rectangle to fill or clear, go to a corner of it and
either press the left mouse button (if using a mouse), or press RETURN (if not
using a mouse). The first corner will blink as a marker to you. Then go to the
diagonally opposite corner and either press the right mouse button or press
RETURN. At any time you can cancel the rectangle fill & clear operation by
pressing ESC.
At this point, the character is temporarily suppressed, leaving displayed the
outline of the character box and the rectangle just marked. You now have the
option of:
---------- -----------
Filling, or \ / rectangle interior
Clearing, or >--- either the --< or
XOR'ing / \ rectangle exterior
---------- -----------
If a mouse is installed, the status line will read:
"Left Button: Fill Right Button: Clear Both: XOR"
The menu choices will show:
F3 = Fill (1)
F4 = Clear (1)
F5 = XOR (1)
ESC= Cancel
notes:
1. This menu choice shown only if no mouse is installed.
Move the mouse or crosshairs to either the interior or exterior of the
rectangle, and either click the mouse or press the function keys F3, F4, or F5.
After a few seconds, the character will be redrawn with the affected pixels
either filled, cleared, or exclusive-ORed (XOR'ed). You will be returned back
to the Area Operations menu.
FONTEDIT, (C) by Alexander Walter Page 17
5.2.1.2.3. Ellipse & Wedge Fill / Clear
Ellipse fill & clear allows filling of elliptical (including circular) regions,
and operates in a similar manner as rectangle fill & clear, except that only
the center of the ellipse and a point on it need to be marked.
Upon entering Ellipse Fill & Clear, the status message at the top of the screen
says either:
"Ellipse fill. Left Button: Center of ellipse"
if a mouse is installed, or:
"Ellipse fill. Go to center of Ellipse & mark it."
if no mouse is installed. The menu keys display the choices:
F3 = Wider, Flatter
F4 = Taller, Thinner
F5 = Refresh Charac.
F6 = Bigger Wedge
F7 = Smaller Wedge
F8 = Move Clockwise
F9 = Move Counterclk
F10= Ellipse OK (1)
RET= Mark Corner (1)
ESC= Cancel
notes:
1. This menu choice shown only if no mouse is installed.
After you mark the center of the ellipse it will blink as a marker to you. The
status line will change to read:
"Ellipse fill. Right Button: Ellipse OK"
if you are using a mouse, or:
"Arrow keys: Define size F keys: Shape of Ellipse"
if no mouse is installed. Move the mouse cursor or crosshairs to define the
size of the ellipse; as you move, the ellipse is continually redrawn to show
you where it will go. The default shape is circular, but you can change the
shape by repeatedly pressing the F3 and/or F4 keys.
The F6, F7, F8, and F9 keys allow you do define a wedge instead of a full
ellipse.
FONTEDIT, (C) by Alexander Walter Page 18
At times, the redrawing process of ellipse may make it hard to make out the
character underneath. If this becomes the case, press F5 to refresh the
character display.
When you have made the ellipse the right size and shape, press the right mouse
button (if using a mouse), or the F10 key (if not using a mouse). At this
point, the character is temporarily suppressed, leaving displayed the outline
of the character box and the ellipse just marked. You now have the option of:
---------- -----------
Filling, or \ / ellipse interior
Clearing, or >--- either the --< or
XOR'ing / \ ellipse exterior
---------- -----------
If a mouse is installed, the status line will read:
"Left Button: Fill Right Button: Clear Both: XOR"
The menu choices will show:
F3 = Fill (1)
F4 = Clear (1)
F5 = XOR (1)
ESC= Cancel
notes:
1. This menu choice shown only if no mouse is installed.
Move the mouse or crosshairs to either the interior or exterior of the ellipse,
and either click the mouse or press the function keys F3, F4, or F5. After a
few seconds, the character will be redrawn with the affected pixels either
filled, cleared, or exclusive-ORed (XOR'ed). You will be returned back to the
Area Operations menu.
5.2.1.2.4. Parallelogram Fill & Clear
Parallelogram fill & clear allows the filling and clearing of parallelogram
areas in a manner similar to rectangle fill & clear. Two adjacent corners of
the parallelogram are first marked, as directed by the instructions on screen.
After the second corner is marked, move the crosshairs or mouse cursor to the
third corner. An outline of the parallelogram will be "rubber banded" on screen
to show the size. Mark the 3rd corner as directed by the instructions on
screen. Move the mouse or crosshairs to either the interior or exterior of the
parallelogram, and either click the mouse or press the function keys F3, F4, or
F5. After a few seconds, the character will be redrawn with the affected pixels
FONTEDIT, (C) by Alexander Walter Page 19
either filled or cleared. You will be returned back to the Area Operations
menu.
5.2.1.2.5. Pixel Edit
This menu choice from the Area Operations menu allows you to return to pixel
editing. While in pixel editing you can, for instance, do detailed pixel by
pixel touch-up work of the areas worked on by the area operators.
5.2.1.3. Clear Character
This function is chosen from the Pixel Edit menu. It allows you to "clear"
(turn off) all pixels within the presently displayed character box.
5.2.1.4. Row/Col Ins/Del
Row/Col Ins/Del allows you to change the size of the character box by inserting
or deleting rows and columns. Rows and columns are inserted or deleted under
the current location of the mouse cursor or crosshairs. By moving the mouse or
crosshairs you can insert or delete rows and columns anywhere in the character
box.
Row/Column insert/delete acts upon the image of the character as displayed.
Since landscape fonts are displayed sideways, deleting a row on the screen
corresponds to deleting a column in the printed version of the character.
When inserting or deleting rows or columns, the upper left corner of the
character box is anchored. The character box grows downward and/or to the
right, and contracts upward and/or to the left. It will not grow beyond the
limits of the cell box, and you cannot contract it to zero rows or columns. You
can move the upper left corner of the character box by pressing Ctrl-Up,
Ctrl-Down, Ctrl-Left, or Ctrl-Right. If your keyboard has two sets of arrow
keys, the arrow keys on the numeric keypad must be used to move the character
box.
When inserting rows or columns, the row or column under the mouse cursor or
crosshairs will be replicated.
Upon entering row/column insert/delete, the status message at the top of the
screen says:
"Insert & Delete Rows or Columns. Go to row or column and use F keys."
FONTEDIT, (C) by Alexander Walter Page 20
The menu choices will show:
F5 = Insert Row
F6 = Delete Row
F7 = Insert Column
F8 = Delete Column
F10= Size OK
ESC= Cancel
Rows and columns are inserted and deleted as described above by pressing the
F5, F6, F7, or F8 keys. When finished, press F10. If you decide not to accept
the changes you made, press ESC. If you press ESC, the character will be
restored to the size it had prior to beginning row/column insert/delete. Any
editing changes made prior to beginning row/column insert/delete will also be
restored.
5.2.1.5. Cut & Paste
This function is chosen from the Pixel Edit menu by pressing F6. It allows you
to copy selected rectangular portions of a character to other parts of that
same character, or to and from a clipboard. The clipboard allows you to
transfer portions of a character to other characters. The copy can be made to
cover-up, logical OR, or logical XOR the underlying pixels. Optionally, you can
delete the original portion of the character being copied.
An example of usage would be to move an accent over a character if you find it
isn't placed correctly. Or, to make an umlaut (double dots over a character),
you could copy the first dot, ensuring that both dots will be the same size.
When entering Cut & Paste, if you have already placed something into the
clipboard, and if the contents would fit within the character being edited, you
will be asked if you want to use the clipboard's contents. The default answer
is no. If you choose yes, the clipboard contents will be shown blinking, and
you can continue placing the contents as described below.
If you answer no, or if the clipboard was empty, you will be asked to mark the
first corner either by clicking the left mouse button (if using a mouse), or by
pressing ENTER (if no mouse). This will be one corner of a rectangular area to
be copied. Then as you move the mouse or crosshairs, a box will rubber-band
showing the size of the rectangular area to be copied. Mark the diagonally
opposite corner by pressing the right mouse button (or by pressing ENTER if no
mouse). It is not necessary to try to click the mouse on the corner of a pixel.
You can click anywhere in the pixels which are to be the corners. FONTEDIT will
include that entire pixel.
Upon marking both corners, the status message at the top of the screen says
either:
"Left Button: OR Copy Right Button: Cover-Up Copy Both: XOR Copy"
if a mouse is installed, or:
FONTEDIT, (C) by Alexander Walter Page 21
"Press F4, F5, or F6 when placement is OK."
if no mouse is installed. The menu keys display the choices:
F2 = Cut / Uncut
F4 = OR Copy (1)
F5 = Cover-Up Copy (1)
F6 = XOR Copy (1)
F8 = To Clipboard
F9 = From Clipboard (2)
ESC= Cancel
notes:
1. This menu choice shown only if no mouse is installed.
2. This menu choice shown only if something has already been copied to the
clipboard.
The image being copied will blink. Use the mouse, or arrow keys and PgUp, PgDn,
Tab, and Shift-Tab keys to position the copy. Pressing F2 toggles whether the
original image is erased or kept. When the position is OK, choose the OR,
Cover-Up, or XOR copy.
The OR copy copies the rectangular image such that the pixels underneath are
turned "on" if they were "on" originally, or if the image being copied has that
pixel turned "on".
The Cover-Up copy copies the rectangular image such that the pixels underneath
become an exact replica of the rectangular image. Any pixels in the rectangular
image which were "off" will stay "off" with the Cover-Up copy, regardless of
whether the pixels underneath were "on" or "off".
The XOR copy copies the rectangular image such that the pixels underneath are
eXclusive-ORed with the pixels in the image being copied. Any "on" pixels in
the copy will reverse the on/off state of the pixel originally underneath. Any
"off" pixels in the copy will not affect the pixel originally underneath.
You can copy the image to the clipboard in case you want to paste it to another
character. Or, if an image has previously been copied to the clipboard, you can
substitute it for the image now blinking.
5.2.1.6. Adjust Kerning
This function is chosen from the Pixel Edit menu. It allows you to adjust the
character spacing for proportional fonts. This function will not be displayed
or activated if the font is a fixed-width font, or if zoom mode is active.
FONTEDIT, (C) by Alexander Walter Page 22
When activated, a blinking line indicates the start of the next character when
the displayed character is printed. Use either the mouse (if installed) or the
arrow keys to move the line. The arrow keys will change the kerning value in
increments of 4. Since the units of kerning is in terms of a quarter-pixel,
each press of an arrow key is equivalent to one pixel. Since the LaserJet
Series II printer rounds the kerning value to the nearest whole pixel anyways,
a finer resolution on the arrow keys would be ineffective.
F10 or clicking the mouse accepts the new kerning value; ESC cancels the
function.
5.2.1.7. Quit & Save
This function saves your editing changes to this character, terminates Pixel
Editing, and returns you to the main menu.
5.2.1.8. Toggle Pixel
This function can be chosen only if using FONTEDIT without a mouse. It allows
you to toggle the pixel underneath the crosshairs either on or off.
5.2.1.9. Quit, no Save
This function terminates Pixel Editing and returns you to the main menu without
saving any of your changes to the character displayed.
5.2.2. Zoom / Unzoom
The zoom function enlarges the displayed character by suppressing the display
of the cell box, and expanding the character box to as large a size as possible
without regard to maintaining any particular ratio of width to height. While in
zoom mode, the character box cannot be moved within the cell box, and kerning
cannot be adjusted. All other editing functions can be used in zoom mode. Zoom
mode can also be toggled by pressing ALT-Z.
If already in zoom mode, the menu will instead say "Unzoom". Unzooming restores
the display of the cell box and re-enables editing functions disabled during
zoom mode.
5.2.3. Font Operators
FONTEDIT, (C) by Alexander Walter Page 23
This selection allows changing parameters of the entire font. The operators
selected using the CTRL key work very similarly to the same choices under the
Pixel Edit - Image Transformation menu, except that the operator will now be
done for each character in the font. For instance, CTRL-F5 will make a mirror
image of each character. Once these operators have begun, they can be stopped
midway by pressing ESC, but characters which have already been transformed will
remain transformed. If you do stop in the middle, you can control what ASCII
value to restart from by using the "start ASCII" parameter described below.
Upon selection of Font Operators, the following menu choices will be available:
NO SHIFT or CTRL SHIFT only CTRL only
F1 = F1 = F1 = Counterclockwise
F2 = New Cell Width F2 = New Symbol Set F2 = Invert
F3 = New Cell Height F3 = New Typeface F3 = Hollow
F4 = Create New Font F4 = New Font Comment F4 = Thinner
F5 = Make Landscape (1) F5 = F5 = Mirror Image
F6 = Make Fixed Width (2
F6 = F6 = Upside-Down F7 = New Pitch (HMI) F7 = F7 = Slant
F8 = New VMI F8 = F8 = Tilt
F9 = New Point Size F9 = F9 = Drop Shadow
F10= Move Baseline F10= F10= Bolder
RET= Move Underline RET= RET= Start ASCII
ESC= Main Menu ESC= Main Menu ESC= Main Menu
notes:
1. If the font is already landscape, this will say "Make Portrait".
2. If font is already fixed width, this will say "Make Propor."
5.2.3.1. New Cell Width
This changes the cell width, which is the maximum width a character in the font
can have. The allowable values for the new cell width are presented as a range;
the lower bound is determined by the maximum character width and offset for all
of the defined ASCII values in the font. The maximum depends on screen
resolution. Note that if the new cell width is chosen very wide for a portrait
font (>187 for CGA, >331 for EGA, >459 for VGA), you won't be able to convert
the font to landscape using FONTEDIT.
5.2.3.2. New Cell Height
This changes the cell height, which is the maximum height a character in the
font can have. The allowable values for the new cell height are presented as a
FONTEDIT, (C) by Alexander Walter Page 24
range; the lower bound is determined by the maximum character height and offset
for all of the defined ASCII values in the font. The maximum is a function of
screen resolution. Note that if the new cell height is chosen very tall for a
landscape font (>187 for CGA, >331 for EGA, >459 for VGA), you won't be able to
convert the font to portrait using FONTEDIT. Similarly, if the cell height of a
portrait font is made >467, you won't be able to convert the font to landscape.
5.2.3.3. Create New Font
This creates a new font from scratch. You will be led through a series of
questions to establish the following font parameters:
- Cell Width
- Cell Height
- Baseline
- Orientation (portrait/landscape)
- Spacing (fixed/proportional)
- Default Horizontal Motion Index, HMI
- Point Size
- Underline Distance
5.2.3.4. Make Landscape / Make Portrait
This option from the Main menu will convert the entire font to landscape (if
presently portrait) or to portrait if presently landscape. The entire process
can take several minutes. Once begun, this process cannot be halted. A status
of the percentage completed is displayed at the top.
5.2.3.5. Make Fixed Width / Make Propor.
This converts a font between fixed width and proportional. If it is being made
proportional, the kerning for each character is automatically set to two pixels
beyond the right of each character.
5.2.3.6. New Pitch (HMI)
This changes the default HMI, which is the horizontal motion (pitch) the
printer makes when it tries to print a character not defined in the font. For
instance, ASCII 32 (the space character) is usually not defined in a font. The
pitch is defined in units of a quarter-pixel, 1200 per inch.
FONTEDIT, (C) by Alexander Walter Page 25
5.2.3.7. New VMI
This changes the default VMI, which is the vertical motion the printer makes
when it goes to a new line. The VMI is defined in units of a quarter-pixel,
1200 per inch. When converted to points (1/72nd of an inch), this is a common
measure of the size of a font.
Choosing this option will not automatically scale the existing characters in
the font. That is done using the "New Point Size" option described below.
5.2.3.8. New Point Size
New Point Size is a choice from the Main Menu. It allows you to change the
point size of the entire font, either bigger or smaller. An attempt is made to
smooth the characters and reduce the "jaggies" that would otherwise result.
Each new character is displayed on the screen as it is processed.
The larger the point size, the longer the process takes. Once begun, the
process cannot be halted. However, when you are initially asked to supply a new
point size, you can cancel this function by pressing ESC or by inputting the
present font size as displayed in the Font Information area at the middle right
of the screen.
5.2.3.9. Move Baseline
This option moves the baseline. The allowable values for the new baseline are
presented as a range; the bounds are determined by a combination of character
height, width, left offset, and top offset for all of the defined ASCII values
in the font. If some characters in the font such as an underscore (ASCII 95)
occupy the last row of the cell box, and other characters such as "|" occupy
the top row of the character box, the baseline cannot be moved without first
changing the offsets for those characters or resizing the cell box.
5.2.3.10. Main Menu
This returns you to the Main Menu.
5.2.3.11. New Symbol Set
This only changes the symbol set defined in the font header. It does not
actually change any of the bitmaps for the characters in the font. Since the
LaserJet uses the symbol set for its highest priority match when selecting
which downloaded font to use when printing, changing the symbol set will
FONTEDIT, (C) by Alexander Walter Page 26
require your application software (i.e., word processors, etc.) to use the
correct symbol set when selecting this font.
The new symbol set is chosen numerically, but the prompt will show the fragment
of the PCL sequence corresponding to this numeric value.
5.2.3.12. New Typeface
This only changes the typeface defined in the font header. It does not actually
change any of the bitmaps for the characters in the font. Changing the typeface
may require your application software (i.e., word processors, etc.) to be aware
of the new typeface value when selecting this font. When the LaserJet selects a
font to use, the typeface value is given a lower priority than the symbol set.
5.2.3.13. New Font Comment
This allows you to change up to 40 characters of the font comment embedded in
the font header.
5.2.3.14. Counterclockwise
This works just like its counterpart under the Image Transformations menu,
except that this will operate on all characters having an ASCII value equal to
or greater than the start ASCII parameter described below. The default value
for start ASCII is 0.
An example of when you would want to rotate a font this way is to be able to
print in columns from top to bottom, instead of rows left to right.
5.2.3.15. Invert
This works just like its counterpart under the Image Transformations menu,
except that this will operate on all characters having an ASCII value equal to
or greater than the start ASCII parameter described below. The default value
for start ASCII is 0.
5.2.3.16. Hollow.
This works just like its counterpart under the Image Transformations menu,
except that this will operate on all characters having an ASCII value equal to
or greater than the start ASCII parameter described below. The default value
FONTEDIT, (C) by Alexander Walter Page 27
for start ASCII is 0.
5.2.3.17. Thinner.
This works just like its counterpart under the Image Transformations menu,
except that this will operate on all characters having an ASCII value equal to
or greater than the start ASCII parameter described below. The default value
for start ASCII is 0.
5.2.3.18. Mirror Image.
This works just like its counterpart under the Image Transformations menu,
except that this will operate on all characters having an ASCII value equal to
or greater than the start ASCII parameter described below. The default value
for start ASCII is 0.
5.2.3.19. Upside-Down
This works just like its counterpart under the Image Transformations menu,
except that this will operate on all characters having an ASCII value equal to
or greater than the start ASCII parameter described below. The default value
for start ASCII is 0.
5.2.3.20. Slant.
This works similarly to its counterpart under the Image Transformations menu,
except that this will operate on all characters having an ASCII value equal to
or greater than the start ASCII parameter described below. The default value
for start ASCII is 0.
Since a character after slanting cannot extend outside the cell box, the sizes
of all characters at and above the start ASCII value will be checked to see
what the maximum allowable slant would be. The desired amount of slant in units
of pixels is entered numerically, with positive numbers being a rightward
slant, and negative numbers being a leftward slant. If the allowable amount of
slant is not enough, try increasing the font's cell width and/or cell height.
5.2.3.21. Tilt.
This works just like its counterpart under the Image Transformations menu,
except that this will operate on all characters having an ASCII value equal to
FONTEDIT, (C) by Alexander Walter Page 28
or greater than the start ASCII parameter described below. The default value
for start ASCII is 0.
Since a character after tilting cannot extend outside the cell box, the sizes
of all characters at and above the start ASCII value will be checked to see
what the maximum allowable tilt would be. The desired amount of tilt in units
of pixels is entered numerically, with positive numbers being a downward tilt,
and negative numbers being an upward tilt. If the allowable amount of tilt is
not enough, try increasing the font's cell width and/or cell height.
5.2.3.22. Drop Shadow.
This works just like its counterpart under the Image Transformations menu,
except that this will operate on all characters having an ASCII value equal to
or greater than the start ASCII parameter described below. The default value
for start ASCII is 0.
For guidance on entering the horizontal and vertical offsets, see the
discussion above for slant and tilt.
5.2.3.23. Bolder.
This works just like its counterpart under the Image Transformations menu,
except that this will operate on all characters having an ASCII value equal to
or greater than the start ASCII parameter described below. The default value
for start ASCII is 0.
5.2.3.24. Start ASCII
This displays the current value of the starting ASCII variable, and allows you
to change it. This variable defines the starting ASCII value for which the font
transformations will be applied. Some ASCII values are 48 for "0", 65 for "A",
and 97 for "a".
5.2.4. Replicate
This function replicates the currently displayed character to another ASCII
value. The new ASCII value must be one which is currently undefined. If
necessary, first delete the ASCII character to be overwritten by using F8 from
the Main Menu.
Upon choosing the Replicate function, you will be presented a list of unused
ASCII characters. When you choose one, the ASCII character which was displayed
FONTEDIT, (C) by Alexander Walter Page 29
prior to choosing Replicate will be copied to the new ASCII value, and you will
be in Pixel Edit mode for the new character.
5.2.5. New Font
New Font is a choice made from the Main Menu, and can be made only if the the
font file being edited contains multiple font definitions. If it does and you
select New Font, you will be presented a list of the available fonts along with
their point size and orientation (portrait or landscape). Make your choice by
number. You will be returned to the Main Menu, and if "A" is defined in the new
font, it will be displayed.
5.2.6. Create New Char.
Create New Character is a choice from the Main Menu. It allows you to define
characters for ASCII values which previously had no symbol in the font. All
members of the LaserJet family can print characters with ASCII values from 32 -
127, and 160 - 255 inclusive. Additionally, the LaserJet Series II and above
can print characters with ASCII values from 1 - 6, 16 - 26, and 28 - 255
inclusive. FONTEDIT supports the creation and editing of all of these ASCII
values.
When you choose the Create New Character option, you will be presented a list
of the available, unused ASCII values in the font. To pick, point and shoot
with the mouse, or else if no mouse is installed, move the reverse-video
highlight with the arrow keys and press ENTER. As a shortcut, you can press the
character's button rather than click on the ASCII value. For instance, if you
want to create the digit "1" (assuming it doesn't already exist), you can
either click on the ASCII value of 49, or you can press the "1" on your
keyboard when you see the list of ASCII values. Press ESC at any time to cancel
back to the Main Menu.
After you pick an ASCII value to define, FONTEDIT will create a blank character
with a default size of half the cell box width and half the cell box height.
You will then be put into Pixel Editing mode, where all the pixel editing
tools, including resizing the character box and moving it around within the
cell box, are available to you. When you are done, exit from Pixel Editing as
usual, and you will be at the Main Menu.
If at this point you change your mind about defining a new character, you can
delete it using the Delete Character option described below.
5.2.7. Delete Character
Delete Character is a choice from the Main Menu. It allows you to delete the
FONTEDIT, (C) by Alexander Walter Page 30
definition of a character from the font after confirmation from the user. The
definition of the character is removed from the font file, and the font file
will become smaller. The deleted ASCII value becomes available to the Create
New Character option.
5.2.8. Printer Support
This selection allows you to print either text files or text echoed from the
keyboard, using either the soft font being edited or one of the built-in fonts
in the LaserJet. All printer output is directed to the DOS device PRN. Upon
choosing this option, the Status Line will read:
"Download Font & Other Printer Functions"
the menu choices will read:
F2 = Download Font
F3 = Print File
F4 = Echo Text
F5 = Page Eject
F6 = Select Font ID (1)
F7 = Built-in Fonts
ESC= Main Menu
notes:
1. Shown only if no embedded font ID already in the font file.
5.2.8.1. Download Font
This downloads the font to the printer and automatically selects it until
further notice for subsequent text to be printed. Font ID 1 is automatically
assigned unless a font ID is already embedded within the font.
5.2.8.2. Print File
This prints a text file from disk using the latest font selected, either the
downloaded font or a built-in font. Wildcards can be used when selecting the
file.
5.2.8.3. Echo Text
This will echo text from the keyboard to the printer using the latest font
FONTEDIT, (C) by Alexander Walter Page 31
selected, either the downloaded font or a built-in font. Each line is sent to
the printer only when RETURN is pressed. A page will not be ejected until F5 is
pressed or until the page is full.
5.2.8.4. Page Eject
This sends a form feed character (ASCII 12) to the printer.
5.2.8.5. Select Font ID
This allows a font ID to be chosen for use when downloading the font to the
printer. This choice is seen only if there is no font ID already embedded in
the font. The new font ID can be chosen from the range 1 to 99, with a default
value of 1. It is not necessary to specify a font ID before downloading; "1"
will be used by default if no other font IDs have been issued.
5.2.8.6. Built-in Fonts
This choice will allow selecting one of the following fonts, the first 6 of
which are internal to the LaserJet:
- Portrait Courier
- Bold Portrait Courier
- Portrait TTY
- Landscape Courier
- Bold Landscape Courier
- Landscape TTY
- Previous soft font (only if one has already been downloaded)
Note that switching between a landscape and a portrait font will cause the
LaserJet to eject a page.
5.2.9. Import TIFF
This selection allows TIFF graphics to be imported to unused ASCII values. If
necessary, first delete the old character using the "Delete Char." option from
the Main Menu.
_
The TIFF image must be black and white color images aren't supported. The
image can be uncompressed or packed (Huffman coded), but FAX compression isn't
supported.
After specifying the TIFF filename from which to import, you will then see a
FONTEDIT, (C) by Alexander Walter Page 32
list of unused ASCII values in the current font being edited. Choose which one
will receive the imported character. As a shortcut, you can press the
character's button rather than click on the ASCII value. For instance, if you
want to import the TIFF graphics to the digit "1", you can either click on the
ASCII value of 49, or you can press the "1" on your keyboard when you see the
list of ASCII values.
If the image is smaller than the cell box, it will be imported immediately and
centered in the cell box.
If the image is larger than the cell box width or height, a portion of it must
be chosen for importing. In this case, the image will be displayed on the
screen. If it is too tall to display using the present display mode (>187 for
CGA, >331 for EGA, >459 for VGA), the bottom will be clipped off. Also, if the
image is less than 638 pixels across, it will be displayed as is. However, if
it is wider than this, you will be presented a compressed image in which each
pixel displayed represents an average of 8 adjacent pixels on that row.
In any event, if the TIFF image is larger than the cell box width or height, a
blinking box will appear. If the TIFF width is less than 638 pixels, the
blinking box represents the cell box size, and can be moved anywhere around the
image using the mouse or arrow keys.
If the TIFF width is greater than 638 pixels, the blinking box represents which
subportion of the TIFF image should be expanded for further examination; the
box is sized to represent how much of the image can be shown uncompressed on
the screen. The message at the top will direct you to press F3 when the box is
positioned correctly. Upon pressing F3, that portion of the compressed image
will be uncompressed to its full screen size, and the blinking box will be
resized to represents the cell box size.
The compressed image may not display reliably in EGA mode. If there are any
problems in EGA mode, try using CGA mode. This is forced by using the "/cga"
switch when starting FONTEDIT.
When you have positioned the box over the portion of the TIFF image to import,
click the mouse or press F10. If the cell box is too small to cover the portion
of the image you want to import, you can either cancel and go to the Font
Operators menu to change the Cell Width or Cell Height, or you can shrink the
image using any paint software you have.
After the image is imported, you are put into Pixel Edit mode. You can clean up
the image, delete rows or columns, etc. Very commonly with images from a hand
scanner, the image will be slightly crooked since it is hard to hold the
scanner for a perfectly straight and level scan. In this case, you can use the
Slant and Tilt options from the Image Transforms menu to help fix the image.
You will not be allowed to quit from pixel editing without saving the
character. If you truly want to discard the imported character, you can choose
the "Delete Char." option from the Main Menu.
FONTEDIT, (C) by Alexander Walter Page 33
5.2.10. Quit
Quit is a choice from the main menu. It allows you to exit from FONTEDIT and
will complete writing the changes you made to the font file.
5.2.10.1. VGA Text Colors
With some VGA adaptor boards, you can customize the VGA text colors used to
display prompts and the menu. You can't change the white foreground or black
background used to display the characters being edited.
The default startup color is turquiose. If on your computer, the text at
startup is white instead of turquise, this means you can't customize the text
colors with your VGA adaptor board.
If you can customize colors, the colors are specified by their red, green, and
blue (RGB) components. The components can be changed in two ways. The first way
is to press the appropriate F key and enter a number from 0 to 63 directly.
The second way is to notice that one of the RGB components has a small arrow
next to it. This defines the selected component. To change the selected
component's value, press the up or down arrows. To change which RGB component
is the selected component, press the left or right arrows.
5.2.10.2. Exp. Factors
Direct control of the magnification values can be obtained by pressing Shift-F3
from the Main Menu. Magnification is used to change the size of the characters
displayed on the screen. Normally, it will not be necessary to use this option,
since FONTEDIT will automatically choose magnification factors which fill up
the screen as much as possible while maintaining a "pleasing" ratio of width to
height.
The smaller the magnification factor, the smaller the character display will
be, and vice versa. This feature could be used to approximate on screen how the
printed character will look, although because of the screen's resolution it is
not possible to duplicate the 300 dot per inch resolution of the printer.
When Shift-F3 is used, FONTEDIT will display the present magnification factors
and prompt you for new factors. The factors are displayed in the form X,Y. This
means that every pixel in the character is composed of "X" rows and "Y" columns
of pixels on the screen. Magnification factors of 1,1 are the smallest that can
be displayed; the largest depends on the cell width and cell height of the font
being displayed, and upon the display adaptor used.
Magnification factors are inputted in the form X,Y including comma. If either X
FONTEDIT, (C) by Alexander Walter Page 34
or Y is omitted, the present value of the missing X or Y is used. Pressing
Return without supplying X or Y will keep the present values.
5.2.10.3. <Print Shop Icon
This option allows you to import a Print Shop icon. These are not the same as a
Print Shop graphics file.
After specifying the filename to import, choose by number which icon within the
file should be imported.
5.2.11. Import PCX
This selection is made by pressing SHIFT-F10 from the Main Menu, and allows PCX
graphics to be imported to unused ASCII values. This works exactly the same as
the Import TIFF function, except that the source image is in the PCX format.
Only binary (black & white) images can be imported.
5.2.12. Import Soft Font
This selection is made by pressing CTRL-F10 from the Main Menu, and allows a
character from another soft font to be imported to unused ASCII values. Upon
choosing this option and supplying the name of the font file to import, you
will be presented a list of ASCII values from that soft font. The character to
import can be chosen either by its ASCII value, or by pressing its keyboard
button. For instance, if you want to import the digit "1", you can either click
on the ASCII value of 49, or you can press the "1" on your keyboard when you
see the list of ASCII values.
After picking which ASCII character to import, you will then see a list of
unused ASCII values in the current font being edited. Choose which one will
receive the imported character. Again, as a shortcut, you can press the
character's button rather than click on the ASCII value.
After choosing the destination ASCII value, importing the character proceeds
exactly like importing a character from a TIFF graphics image.
5.2.13. Pick ASCII
This menu choice allows you to select an ASCII character to display. This may
be needed when running FONTEDIT on PCs without numeric keypads, since the
conventional way of displaying a character without an associated key on the
keyboard is to press and hold the ALT key, type the 3-digit ASCII value on the
numeric keypad, then release the ALT key. Without a numeric keypad, use the
Pick ASCII menu choice instead.
FONTEDIT, (C) by Alexander Walter Page 35
6. Tips
Below are a few tips for using FONTEDIT, based on interest from user feedback.
6.1. Scanning and Importing Graphics
In this version of FONTEDIT, .PCX is the preferred import format since it is
much faster than .TIF support, and you can scroll .PCX images which are bigger
than your screen. You won't be limited to importing from the "top" of a .PCX
image, whereas you will still have this limitation with .TIF images.
Whn importing from .TIF graphics, characters must be selected from the "top" of
the image. "Top" varies with the graphics mode; it varies from the top 459
lines in VGA mode, down to the top 187 lines in CGA mode. If your graphics is
wider than 637 pixels, you will first be shown a compressed image. Note that at
300 dpi, a scan of 459 x 637 pixels is roughly 1.5" H x 2" W. When possible,
try to crop the .TIF image so that it is as small as possible.
If using a scanner, set your scanner's resolution to 300 dots per inch (dpi)
will match the Laserjet's 300 dpi resolution, making your new characters the
same physical size as your sample notes. Otherwise, you may need to use the
Resize Character option (Shift-F2 from the Image Transform Menu).
Graphic images must be black & white line art, not color. If possible, set
color scanners to black & white mode. Gray scale images may or may not work.
To create characters from a scanned image where the upper and lower case
characters are similar (for instance "X" and "x", or "C" and "c"), first import
the upper case version and clean it up. Then create the lower case version by
copying it to the new ascii value and resizing it. It is easier to create a
clean lower case character this way than trying to import it, since the scanned
image may be full of stray pixels.
6.2. Very Large Point Sizes
Very large point sizes use a lot of RAM, both in FONTEDIT and within the
printer. The tips below will help deal with these memory requirements when
working with very large point sizes (around 100 point). For all other
situations, no special precautions should be necessary.
Before starting FONTEDIT, make sure you have as much RAM free as possible. Do
this by removing nonessential TSRs from your autoexec.bat, and device drivers
from config.sys. Or as an alternative, use an expanded memory manager (such as
HIMEM.SYS or QEMM.SYS) to load these items high. Don't reduce the number of
"FILES=" in your config.sys to less than 10 to 15 or so.
FONTEDIT, (C) by Alexander Walter Page 36
The amount of working RAM needed when resizing a font depends on the point size
of both the starting size and desired size. So it will take less RAM to resize
from a smaller size to a very big size, compared to resizing from a big size to
a very big size.
The size of the file will grow by about the square of the change in point size,
so make sure you have enough free disk space available. For instance, if you
double the point size, the file will roughly quadruple in size. FONTEDIT will
also need working space on the hard disk equal to the size of the new font
file.
Delete any unnecessary characters from the font before you resize it. Not only
will FONTEDIT be able to resize the font faster because there is less work to
do, but you will also save memory in your printer when you download the font.
In the remaining characters, check whether any have blank rows or columns
around the edges. If so, delete these blank rows/columns by using the Ins/Del
Row/Col option from the pixel edit menu.
Move the remaining characters higher in the cell box by decreasing the baseline
position (F10 from the Font Operations Menu). Then make the font's cell width
and cell height as small as possible. These are changed via F2 and F3 from the
Font Operations Menu.
After deleting unnecessary characters and changing the cell width and height,
you may find it more accurate to calculate the point size directly from the
number of pixel rows in a character rather than relying on the original point
size of the font. Since the LaserJet prints at 300 pixels per inch, and in
typography 1 inch equals 72 points, there are 4.167 pixels per point size, or
conversely 0.24 points per pixel. For instance, a font of 110 point size should
have a vertical size of 458 pixels.
Once you have successfully resized the font, save your intermediate results by
immediately quitting FONTEDIT and copying the file. Then you can restart
FONTEDIT and edit the characters to touch them up.
Certain functions while pixel editing will require more RAM. These include the
Image Transform functions EXCEPT for Invert and Upside-Down. Avoid the rest of
the Image Transforms if you can.
To reiterate, these suggestions should only be necessary for very large point
sizes. For most other application, no special steps should be necessary.
FONTEDIT, (C) by Alexander Walter Page 37
7. Sample Session
Two sample sessions are included below as a way of demonstrating how to use
FONTEDIT. They will create 1) a Gantt milestone character (); and 2) a
registered trademark symbol (╚).
7.1. Gantt Milestone Character
The objective of this sample session will be to create a special symbol used
when printing Gantt timing charts. The symbol we will create is ASCII 127. This
symbol is a hollow, upward-pointing triangle and is used by the on-screen
display of Timeline to signify a milestone. However, most font files do not
include this character, so we must either make do with a substitute or define
our own. When printing a Gantt file to disk, Timeline uses ASCII 127 as the
milestone character, so we will edit ASCII 127.
Start up FONTEDIT and choose your font file. When you get to the main menu, try
displaying ASCII 127. Since it is not represented by a key on the keyboard, you
will have to hold down the ALT key, press 127 on the numeric keypad, and then
let go of the ALT key. If nothing happens on the screen, this means ASCII 127
is not defined in the font file. You will have to Create a New Character. If
so, choose F7 from the main menu. Highlight "127" from the list you see and
either click the mouse or press ENTER. You will now be in Pixel Edit mode for
ASCII 127.
If ASCII 127 already exists in your font file, press F2 from the Main Menu to
begin editing it.
In Pixel Edit mode, perform the following steps to create a hollow, upward
pointing triangle. At all times we will be choosing from the menu options
displayed along the top and top right of the screen.
- Press F4 to clear the character entirely.
- Press F3 to begin Area Operations.
- Press F3 to choose a polygon shape.
- Go to the top of the character box and mark this as the apex (top) of the
triangle by either pressing the left mouse button (if a mouse is
installed), or by pressing RETURN (if no mouse is installed).
- Go to the lower left corner of the character box and mark it as the lower
left corner of the triangle by pressing either the left mouse button or
RETURN.
- Go to the lower right corner of the character box and mark it as the lower
right corner of the triangle by pressing either the left mouse button or
RETURN.
- Complete the triangle by pressing either the right mouse button (if using
a mouse), or F10 (if not using a mouse).
- Move the mouse cursor or crosshairs to the interior of the triangle and
press F3 to Fill it.
FONTEDIT, (C) by Alexander Walter Page 38
We now have a solid, upward pointing triangle on screen. But we want a hollow
triangle. So we will repeat the process above for a smaller triangle within the
solid triangle, but instead of filling it we will clear it.
- Press F3 to choose a polygon shape.
- Go to a point about 4 pixels below the apex of the solid triangle and
press the left mouse button or RETURN.
- Go to a point about 4 pixels above and to the right of the lower left
corner of the character box and mark it as the lower left corner of the
triangle by pressing either the left mouse button or RETURN.
- Go to a point about 4 pixels above and to the left of the lower right
corner of the character box and mark it as the lower right corner of the
triangle by pressing either the left mouse button or RETURN.
- Complete the triangle by pressing either the right mouse button (if using
a mouse), or F10 (if not using a mouse).
- Move the mouse cursor or crosshairs to the interior of the triangle and
press F4 to Clear it.
- Press ESC to go to Pixel Editing. You can do pixel-by-pixel touchup of the
character if you wish.
- Press F10 to save your changes
At this point we should now have displayed and saved a hollow, upward pointing
triangle. We could continue to define new characters, but lets stop; this is
enough for a demonstration.
- Press ESC to quit. When prompted for confirmation, press "Y".
Your fontfile has now been edited to define ASCII 127 as a hollow, upward
pointing triangle. Download it to your laser printer as usual, and whenever you
print a document using this font, all ASCII 127s will be displayed as a hollow,
upward pointing triangle, similar to this: .
7.2. Registered Trademark Symbol
A registered trademark symbol is often represented by a small capital "R"
within a circle; however, this character is seldom included in a font. Use
FONTEDIT to make our own!
The discussion below will assume that ASCII 200 will become the new symbol, and
that ASCII 200 doesn't already exist in the font.
At the Main Menu, press "R" to display a capital R. Then perform the following
steps:
- Press F5 to copy it to ASCII 200
- You are now in Pixel Edit mode for ASCII 200. Make sure you are not in
Zoom mode. If you are in Zoom mode, unzoom by pressing ALT-Z.
- From the Pixel Edit menu, choose F2, Image Transforms
FONTEDIT, (C) by Alexander Walter Page 39
- From the Image Transforms menu, press SHIFT-F2 to Resize.
The blinking box now represents the outline of the character box after the
character is resized. Resize it to have about half its former width and height.
Once it has the proper size, click the mouse or press F10 to accept. Then
continue with the following steps:
- Press ESC to return to the Pixel Edit menu.
- Press F5 to choose Row/Col Ins/Del. Use this to insert several blank rows
and columns on all sides of the character. When OK, press F10 to accept
the new size. Use Ctrl-Up, -Down, -Left, or -Right to center the character
appropriately.
- Press F3 for Area Operations
- Press F5 for Ellipse & Wedge.
- Completely enclose the small capital "R" in a circle, and make sure the
"R" is centered in the circle. Make sure there is still room on all sides
between the circle and the character box. When the circle is OK, either
click the mouse or press F10 to accept. Use the fill option to fill
everything outside the circle.
- Draw a second circle with the same center as the first, but slightly
larger so that it completely encloses the first. Again, make sure there is
still room on all sides between the second circle and the character box.
When the second circle is OK, use the clear option to clear everything
outside the second circle.
You will now see the registered trademark symbol. Press ESC to return to the
Pixel Edit menu, then press F10 to accept the new character. It should look
something like this: ╚.